package com.zhkj.txg.module.login.ui

import com.zhkj.lib.base.ViewModelFragment
import com.zhkj.txg.R
import com.zhkj.txg.module.login.vm.LoginViewModel
import kotlinx.android.synthetic.main.fragment_register_success.*

class RegisterSuccessFragment : ViewModelFragment<LoginViewModel>() {
    override val layoutResId: Int = R.layout.fragment_register_success
    override fun setViewModel(): LoginViewModel = createViewModel(true)

    override fun initUI() {
        btnConfirm.setOnClickListener {
            viewModel.pageIndexLiveData.value = LoginActivity.Index.HOME
        }
    }
}